package com.ruoyi.vbze.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 气温对象 temperature
 * 
 * @author vbze
 * @date 2023-02-27
 */
public class Temperature extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 气温id */
    private Long id;

    /** 气象站编号 */
    @Excel(name = "气象站编号")
    private Long station;

    /** 气象站名称 */
    @Excel(name = "气象站名称")
    private String name;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 最高气温 */
    @Excel(name = "最高气温")
    private BigDecimal maxTemperature;

    /** 最低气温 */
    @Excel(name = "最低气温")
    private BigDecimal minTemperature;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStation(Long station) 
    {
        this.station = station;
    }

    public Long getStation() 
    {
        return station;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setMaxTemperature(BigDecimal maxTemperature) 
    {
        this.maxTemperature = maxTemperature;
    }

    public BigDecimal getMaxTemperature() 
    {
        return maxTemperature;
    }
    public void setMinTemperature(BigDecimal minTemperature) 
    {
        this.minTemperature = minTemperature;
    }

    public BigDecimal getMinTemperature() 
    {
        return minTemperature;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("station", getStation())
            .append("name", getName())
            .append("date", getDate())
            .append("maxTemperature", getMaxTemperature())
            .append("minTemperature", getMinTemperature())
            .append("description", getDescription())
            .toString();
    }
}
